﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="goods.aspx.cs" Inherits="admin_product_goods" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>万礼通后台管理系统</title>
     <link href="../css/main.css" rel="stylesheet" type="text/css" />
      <script language="JavaScript" type="text/javascript" src="../js/main.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
   <table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td width="2%"><img src="../images/module.gif" width="20" height="22" alt=""/></td>
<td ><asp:Label ID="lblwz" runat="server"></asp:Label></td>
<td  align="right" width="10%"><div><a href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a></div></td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0" style="text-align:left;">
     <tr>
      <td><img height="22" alt="SEARCH" src="../images/icon_search.gif" width="26" border="0" /></td>
      <td><asp:DropDownList ID="typeid" runat="server">
             <asp:ListItem Text="商品分类" Value="0"></asp:ListItem>
          </asp:DropDownList> 
          <asp:DropDownList ID="propinpai" runat="server">
            <asp:ListItem Value="0">所有品牌</asp:ListItem>
          </asp:DropDownList>
          <select name="ishot" id="ishot" runat="server">
          <option value="0">所有大类</option>
          <option value="2">专区</option>
          <option value="3">礼品卡专区</option>
          <option value="4">礼品商城</option>     
      </select>

      <asp:DropDownList ID="ddlProfessionAreaType" runat="server">
            <asp:ListItem Value="" Text="所属专区"></asp:ListItem>
          </asp:DropDownList>
      
      </td>
      <td align="right">关键字：</td>
      <td><input name="keyname" id="keyname" runat="server" style="width: 126px" /></td>
      <td align="left"><asp:ImageButton ID="ImageButton1" ImageUrl="../images/button04.gif" runat="server" OnClick="ImageButton1_Click" /></td>
    </tr>
</table>
    <table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="2px"></td>
  </tr>
</table>
   <asp:GridView ID="GridView1" runat="server" CssClass="tabGg" Width="99%" CellPadding="4" 
        ForeColor="#333333" DataKeyNames="proid" AutoGenerateColumns="False" 
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" 
      ShowFooter="false" EmptyDataText="没有数据记录！！" AllowSorting="True" 
   OnRowDataBound="GridView1_RowDataBound" OnSorting="GridView1_Sorting">
        <Columns>
            <asp:TemplateField ShowHeader="False" Visible="false" HeaderText="选择">
             <ItemStyle Width="20px" Wrap="False"  />
             <HeaderTemplate>
                 <asp:CheckBox ID="CheckBox1" runat="server"></asp:CheckBox>
             </HeaderTemplate>
             <ItemTemplate>
                 <asp:CheckBox ID="CheckBox1" runat="server"></asp:CheckBox>
             </ItemTemplate>
            </asp:TemplateField>
             <asp:BoundField HeaderText="编号" DataField="proid"  HeaderStyle-Width="60px"  sortexpression="proid" > </asp:BoundField>
              <asp:BoundField HeaderText="商品名称" DataField="proname"  HeaderStyle-Width="300px"  sortexpression="proname" > </asp:BoundField>
       
        <asp:BoundField HeaderText="货号" DataField="procode"  Visible="false" sortexpression="procode" />
        <asp:TemplateField ShowHeader="False" Visible="false" HeaderStyle-Width="60px" HeaderText="排序">
           <ItemTemplate>
             <asp:TextBox ID="TextBox1" runat="server" BorderStyle="None" Text='<%# Eval("proorder") %>' Width="60px"></asp:TextBox>
           </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="价格" DataField="saleprice" sortexpression="saleprice" />
        <asp:BoundField HeaderText="上架" DataField="proisshow" sortexpression="proisshow" />
        <asp:BoundField HeaderText="最新" DataField="isnew" sortexpression="isnew" />
            <asp:BoundField HeaderText="促销" DataField="ispromotion" sortexpression="ispromotion" />
        <asp:BoundField HeaderText="专区" DataField="proisprofession" sortexpression="proisprofession" />
        <asp:BoundField HeaderText="礼品卡专区" DataField="proiscard" Visible="true" sortexpression="proiscard" />
        <asp:BoundField HeaderText="礼品商城" DataField="proismarket" sortexpression="proismarket" />
        <asp:BoundField HeaderText="库存" DataField="proku" sortexpression="proku" />
        <asp:BoundField HeaderText="" DataField="proid" sortexpression="proid" />
        <asp:BoundField HeaderText="" DataField="typeid" sortexpression="typeid" />
        <asp:TemplateField ShowHeader="False" HeaderText="操作" HeaderStyle-Width="100px">
             <ItemTemplate>
                 <asp:HyperLink ID="HyperLink1" runat="server" Target="_blank"><img height="16" src="../images/icon_view.gif" width="16" border="0" /></asp:HyperLink>
               <a  onclick="openNewTab('<%# "商品编辑-" + Eval("proid") %>','product/goods_add.aspx?pid=<%# Eval("proid")%>')" title="编辑"><img height="16" src="../images/icon_edit.gif" width="16" border="0" /></a>
               <a href="goods.aspx?action=del&amp;pid=<%# Eval("proid") %>" title="回收站"><img height="16" src="../images/icon_trash.gif" width="16" border="0" /></a>
      
             </ItemTemplate>
        </asp:TemplateField>
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="98%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td height="25" align="right" bgcolor="#E9ECEF">
         <asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
    </table>
</center>
    </div>
    </form>
</body>
</html>


